﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum CardState
    {
        /// <summary>
        /// 未使用
        /// </summary>
        Normal=0,
        /// <summary>
        /// 已充值
        /// </summary>
        Used=1,
    }

    public static class CardStateEx
    {
        public static string GetName(this CardState state)
        {
            switch (state)
            { 
                case CardState.Normal:
                    return "未使用";
                case CardState.Used:
                    return "已充值";
                default:
                    return string.Empty;
            }
        }
    }
}
